package demo2;

public class Test {
    public static void main(String[] args) {
        MyArray<String> myArray1=new MyArray<>();
        myArray1.setObjects(0,"abcd");
        String ret=myArray1.getObjects(0);
        System.out.println(ret);
        MyArray<Integer> myArray2=new MyArray<>();
        myArray2.setObjects(0,10);
        myArray2.setObjects(1,7);
        int num=myArray2.getObjects(0);
        int num1=myArray2.getObjects(1);
        System.out.println(num);
        System.out.println(num1);

    }
}
